<?
/**
* Copyright (c) 2002-2007 BioWare Corp.
* http://www.bigdaddymonitor.org
*
* This file is part of the BigDaddy Monitoring
* program. It is free software distributed under
* the terms of the BSD License. It is ditributed
* in the hopes that it will be useful, but
* WITHOUT ANY WARRANTY; without event the implied
* warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE.
*
* The BSD License is available from:
* http://www.opensource.org/licenses/bsd-license.php
**/

if ($displayParams["bShowCategories"])
{
    // using table for layout due to CSS bug in IE6...can go back to CSS post IE6
    ?>

    <div  class="wiki_categories">
        <table border="0" cellspacing="0" cellpadding="0" width="100%">
            <tr>
                <td width="2%" valign="top">
                    <a href="<?=$_SERVER["PHP_SELF"]."?action=viewcat&wiki=".$displayParams["aWikiProperties"]["sWikiID"];?>">Categories</a>:
                </td>
                
                <td width="*" style="padding-left: 3px;">
             
                    <?
                    foreach ($displayParams["aCategories"] as $sKey => $sValue)
                    {
                       $sCatURL=$_SERVER["PHP_SELF"]."?action=viewcat";
                       $sCatURL.="&cat=".$sValue;
                       $sCatURL.="&wiki=".$displayParams["aWikiProperties"]["sWikiID"];
                       
                       $sWiki.="<span class=\"wiki_categories_font\"><a href=\"".$sCatURL."\">".$sKey."</a></span>, ";
                       
                    }
                    
                    echo substr($sWiki,0,strlen($sWiki)-2);
                    
                    
                    ?>
                    
                </td>
            </tr>
        </table>
    </div>
    <?
}
?>
<div class="<?=$sClass;?>">
<?
    if (!$displayParams["bIsPreview"])
    {
        echo $displayParams["sBody"];
    }		
    ?>
    

    
</div>

